﻿using NUnit.Framework;
using OpenWaves.Text;

namespace OpenWaves.UnitTests.Text
{
    [TestFixture]
    public class BestFitASCIIEncodingTests
    {
        [Test]
        public void TestEncodingEncodesPolishNationalCharactersAsPlainAscii()
        {
            Assert.AreEqual("Miroslaw Z O L C z o l c", BestFitASCIIEncoding.Encode("Mirosław Ż Ó Ł Ć ż ó ł ć"));
        }

        [Test]
        public void TestEncodingEncodesNorwegianNationalCharactersAsPlainAscii()
        {
            Assert.AreEqual("o ae", BestFitASCIIEncoding.Encode("ø æ"));
        }
    }
}